home *** CD-ROM | disk | FTP | other *** search
/ IBM InfoROM for OS/2 Beta 1995 January / IBM InfoROM for OS2 Beta 1-1995.ISO / testcert / storage / function / scsi / add / verify.scr < prev    next >
Encoding:
Text File  |  1994-08-08  |  1.6 KB  |  60 lines

  1. * Verifies the data written on the medium.
  2.  
  3. @THREAD VERIFY.LOG
  4. @NEWALIAS SADD SCSIADD.GRA
  5. @IMPORT SCSICOM.SCR
  6. SADD DD_OPEN
  7.  
  8. * 0=Async mode, 1=Sync mode
  9. SADD SET MODE=1
  10.  
  11. * Command completion timeout (Secs)
  12. * 0=the assigned value is the default set by the driver,
  13. * -1=the assigned value is infinite.
  14. SADD SET TIMEOUT=0
  15.  
  16. * Name for paramblock
  17. SADD SET LABEL = "READ CAPACITY"
  18.  
  19. SADD READCAPACITY
  20.  
  21. * SADD SET LOGICAL_BLOCK_SIZE = 512
  22. **  SADD SET BUF_CLUSTER_SIZE = 2
  23.  
  24. * 1(verify - byte-by-byte compare),
  25. * 0(verify with no data comparison)
  26.   SADD SET BYTE_CHECK = 1
  27.  
  28. * 1(Cache if possible),  0(Need not cache it)
  29.   SADD SET CACHE_IF_POSSIBLE = 1
  30.  
  31. * 32bit starting logical block addr
  32. SADD SET LOGICAL_BLOCK_ADDR = 40
  33.  
  34. *STARTING LOGICAL BLOCK ADDR
  35. *SADD RESPONSE $PROMPT="ENTER STARTING LOGICAL BLOCK ADDR : " $RESPONSE=LOGICAL_BLOCK_ADDR $PAUSE=15
  36.  
  37. *  0 = indicates that the logical block address field
  38. *      specifies the first logical block of the range of
  39. *      logical blocks to be operated on by this command.
  40. *  1 = indicates that the logical block address field is
  41. *      a two's complement displacement.  This -ve or +ve
  42. *      displacement shall be added to the logical block
  43. *      address last accessed on the logical unit to form the
  44. *      logical block address for this command.
  45. SADD SET ADDR_MODE=0
  46.  
  47. * No. of contiguous logical blocks to be read
  48. SADD SET NUM_BLOCKS = 1
  49.  
  50. *NO. OF CONTIGOUS LOGICAL BLOCKS TO BE READ
  51. *SADD RESPONSE $PROMPT="ENTER # OF LOGICAL BLOCKS : " $RESPONSE=NUM_BLOCKS $PAUSE=15
  52.  
  53. * Name for paramblock
  54. SADD SET LABEL = "VERIFY"
  55.  
  56. SADD VERIFY
  57.  
  58. SADD DD_CLOSE
  59.  
  60.